$OpenBSD: patch-panel_misc_c,v 1.2 2010/12/21 10:29:48 dcoppa Exp $

use g_snprintf instead of g_sprintf

--- panel/misc.c.orig	Wed Apr 28 13:39:31 2010
+++ panel/misc.c	Tue Dec 21 06:56:28 2010
@@ -687,7 +687,7 @@ gchar *
 gdk_color_to_RRGGBB(GdkColor *color)
 {
     static gchar str[10]; // #RRGGBB + \0
-    g_sprintf(str, "#%02x%02x%02x",
+    g_snprintf(str, sizeof(str), "#%02x%02x%02x",
         color->red >> 8, color->green >> 8, color->blue >> 8);
     return str;
 }
